/*
 * @Author: cqc
 * @Github: https://gitee.com/cqcgitee
 * @LastEditors: cqc
 * @Description:
 */
import { createApp, readonly, ref } from 'vue';
import App from './App.vue';
import router from '@/router';
import store, { setupStore } from '@/store';
// import request from '@/service/index';
import 'normalize.css';
import '@/assets/css/index.less';

import { registerApp } from '@/globalComponent';
import 'element-plus/lib/theme-chalk/base.css';

import '@/utils/myPractice/immplementTsUtils/immplementTsUtils';
import '@/utils/myPractice';
import '@/common/properties/properties';

import 'animate.css';
import '@/style/index.less';

// interface DataType {
//   data: any;
//   returnCode: string;
//   success: boolean;
// }
// request
//   .get<DataType>({
//     baseURL: 'http://123.207.32.32:8000/',
//     url: '/home/multidata',
//     showLoading: true,
//   })
//   .then(
//     (res) => {
//       res;
//     },
//     (err) => {
//       console.log('err', err);
//     }
//   );

setupStore();

const app = createApp(App);
const messageTest = ref('这一个 233');
app.provide('messageTest', readonly(messageTest));

app.use(store).use(router).use(registerApp).mount('#app');
